﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RefOffDesktop
{
    /*
     * Class: Player
     * 
     * Use: Models a Player object involved in a Match, for use
     *      in all parts of the system such as misconduct reporting
     *      
     * Author: Mike Skaife, mcs3@aber.ac.uk
     */ 
    public class Player
    {
        //The details of the Player
        int pPlayer_id;
        String pSurname;
        String pForename;
        int pNumber;
        int pClub_id;
        String pName;
        
        public Player()
        {
        }        
        
        //Setter and getter for database id of the Player
        public int player_id
        {
            get
            {
                return pPlayer_id;
            }

            set
            {
                pPlayer_id = value;
            }
        }

        //Setter and getter for surname of Player
        public String surname
        {
            get
            {
                return pSurname;
            }

            set
            {
                pSurname = value;
            }
        }

        //Setter and getter for forename of Player
        public String forename
        {
            get
            {
                return pForename;
            }

            set
            {
                pForename = value;
            }
        }

        //Setter and getter for full name of Player (number, forename, surname)
        public String name
        {
            get
            {
                return pName;
            }

            set
            {
                pName = value;
            }
        }

        //Setter and getter for Player shirt number
        public int number
        {
            get
            {
                return pNumber;
            }

            set
            {
                pNumber = value;
            }
        }

        //Setter and getter for the database id of the Club the Player belongs to
        public int club_id
        {
            get
            {
                return pClub_id;
            }

            set
            {
                pClub_id = value;
            }
        }
    }
}
